package com.rank.ccms.profile.bean;

import com.rank.ccms.profile.model.ProfileTypeEnum;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: SABIR IQBAL
 * Date: 1/2/14
 * Time: 12:20 AM
 * To change this template use File | Settings | File Templates.
 */
public class ProfileBean {

    private Long id;
	
	private ProfileTypeEnum profileType;

    private java.util.Date createdOn;

    private java.util.Date updatedOn;

    private String createdBy;

    private String firstName;

    private String middleName;

    private String lastName;

    private String phoneNumber;

    private AddressBean addressBean;

    public Long getId() {
        return id;
    }

	public ProfileTypeEnum getProfileType() {
        return profileType;
    }

    public void setProfileType(ProfileTypeEnum profileType) {
        this.profileType = profileType;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    public Date getUpdatedOn() {
        return updatedOn;
    }

    public void setUpdatedOn(Date updatedOn) {
        this.updatedOn = updatedOn;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getMiddleName() {
        return middleName;
    }

    public void setMiddleName(String middleName) {
        this.middleName = middleName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public AddressBean getAddressBean() {
        return addressBean;
    }

    public void setAddressBean(AddressBean addressBean) {
        this.addressBean = addressBean;
    }

    public String save(){
        String outCome= "error";
        if("Sabir".equalsIgnoreCase(getFirstName())){
            outCome="success";
        }
        return outCome;
    }

}
